projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0330b1b
)
Tidy up.
author
Ewan Mellor
<ewan@xensource.com>
Thu, 14 Dec 2006 17:25:38 +0000
(17:25 +0000)
committer
Ewan Mellor
<ewan@xensource.com>
Thu, 14 Dec 2006 17:25:38 +0000
(17:25 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/check/check_python_xml
patch
|
blob
|
history
diff --git
a/tools/check/check_python_xml
b/tools/check/check_python_xml
index de9ebac09cc237bc04c328189d4c43cb22b4aec6..faf56bb0837bb8923ec58d920bf7816f6669af7a 100755
(executable)
--- a/
tools/check/check_python_xml
+++ b/
tools/check/check_python_xml
@@
-1,19
+1,8
@@
-#!/bin/
ba
sh
+#!/bin/sh
# CHECK-INSTALL
-RC=0
-
-python -c '
-import os.path, sys
-for p in sys.path:
- if os.path.exists(p + "/xml/dom/minidom.py"):
- sys.exit(0)
-sys.exit(1)
-' || RC=1
-
-if test ${RC} -ne 0; then
+python -c 'import xml.dom.minidom' 2>/dev/null || {
echo
echo " *** Check for python-xml package FAILED"
-fi
-
-exit ${RC}
+ exit 1
+}